package chezsmithybot;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

import java.io.Serializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class RobotSettings {

	public static class Id implements Serializable {

		public Id() {
		}

		public Id(java.lang.String str) {
			java.util.StringTokenizer token = new java.util.StringTokenizer(
					str, "::");
		}

		public java.lang.String toString() {
			java.lang.String str = "";
			return str;
		}

		public boolean equals(Object o) {
			if (this == o) {
				return true;
			}
			if (o == null) {
				return false;
			}
			if (o.getClass() != getClass()) {
				return false;
			}
			Id objToCompare = (Id) o;
			return true;
		}

	}

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	Key key;
	
	@Persistent
	private Boolean AutoCaptureTitle;
	
	public RobotSettings() {
		this.setAutoCaptureTitle(false);
	}
	
	public void setAutoCaptureTitle(Boolean autoCaptureTitle) {
		AutoCaptureTitle = autoCaptureTitle;
	}

	public Boolean getAutoCaptureTitle() {
		return AutoCaptureTitle;
	}

}
